#include "setdialog.h"
#include "ui_setdialog.h"
#include<QMessageBox>

setdialog::setdialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::setdialog)
{
    ui->setupUi(this);
}

setdialog::~setdialog()
{
    delete ui;
}
void setdialog::on_pushButton_clicked()
{
    emit set_signal(ui->lineEdit->text().toInt());
    QString mytitle="消息框";
    QString myinfo="设置成功！";
    QMessageBox::information(this,mytitle,myinfo);
    this->hide();
}
